Clearly this is the Detritus the Tröll technique:
One of the reasons behind Detritus’s emerging cleverness is the special helmet he is wearing which has a fan that cools his head. (Since trölls’ brains are made from impure silicon, they work better when cooled.) The helmet has been constructed by his friend and first partner on the job, acting-constable Cuddy, (deceased).
In colder climates, (such as Bonk winters or the chill desert nights of Klatch), Detritus displays intelligent wit and humour, and if left exposed to the icy coldness of the Pork Futures Warehouse long enough, reaches extraordinary levels of intelligence; however this is also a near-fatal temperature for even trölls.