Attempting O3 compiler optimization