Use of a compound (I) comprising a linear 8-24C hydrocarbon chain having nitrogenous functional group at each end, other than amine group, for storing thermal energy, is claimed. An independent claim is included for storing and optionally thermal energy release, comprising contacting a wall to be cooled with a first heat transfer fluid and the first heat transfer fluid with a material comprising (I).