Medium and high temperature energy storage