Improve checksum perf by providing an output buffer