Ofast optimizations