Add a de-compressor to unsquash the gas, making it cool again
You are right in thinking that a de-compressor would make the gas cool again. It is not a good solution, though, as it would also lower the pressure again - you would end up going round in circles!