Energy recovery by heat storage elements arranged in the combustion chamber