Optimizing glass bending cycle