The efficiency of a device for cooling or heating objects on a belt that moves through a path of a helix, in which gaseous cooling or heating medium is circulated within the device, is improved by positioning fans that circulate the cooling or heating medium so that the fans are distanced from the top of the helix.