Optimised 64-bit version