An important use of the disclosed approach is the improvement efficiency of thermal cycles and as result efficiency of engines. Different cycles and different ways of compression of spinning gas may be used to maximize possible efficiency gain. In conventional internal combustion engines, gas spinning is either not used at all or used only with the purpose of increasing turbulence and better mixing. In the disclosed method, gas rotation is used for energy storage, hence it allows an improvement in thermal cycle efficiency. To achieve significant effect related to spinning, the gas should spin quite fast, such that velocity of collective motion is comparable or higher than thermal velocity. It is estimated that the improvement of efficiency can be of the order of several percent, which can be significant for modern engines with efficiencies in the range of 20- 40%.