Fix quadratic running time in expression optimizer