Integrated file sampling as a proper hashing method as well as integrating it into the usual file hashing loop