optimizations from otila

These may slow down AMD, but give around 30-40% increase on some intels