Using checksums to compare contents rather than reading whole file from disk into memory