Optimization of renormalization group flow