Phase change energy storage device design