Application of liquid cooling in energy storage