Tweak optimizations.
Added nosync and optPerm3.