Optimize with O3 and adding targets for correctness, performance and reorder