memcpy delay in read and write