On the optimization of a class of second order iterative schemes