RAM-friendly implementation of md5sum