Preventing wafer warping with infrared