Checksum: optimize do_csum a bit