Heating and cooling of external targets at the SPS