CryptoNight optimizations