Optimization for constant stepsize