[fix] simplify optimizing