make mix constants actual constants, add unsafe x64 optimized hash