-O3 optimizations