Made writeMask a 16 byte array to save a few instructions per byte