performance improvement of optimization phase