ENH: Avoid memcpy to tmp buffer for checksum