Heat transfer issues in energy storage