Remove as much memcpy'ing as possible in a tight loop
Convert BLOCK_XOR to an inline function
mlock() and zero out sensitive data
static_assert for our cast of array pointer to 2d-arrays