Improve checksum perf by providing an output buffer
Avoid reading whole files into memory during decompression