Optimizations in many places