Controlled heating for plastic annealing