Calculate MD5 sums of files in chunks rather than reading the whole file into memory.