Polyimide curing for wafer fab