search optimised by only hashing files within 5 bytes of the ref file