Swap literals to the end if optimizing.