Find all files in the ~/files directory, execute the md5sum command on each file, print the second column of the output, sort the output and remove duplicate entries, then search for the remaining entries in the files.
find ~/files -type f -exec md5sum {} \; | awk '{print substr($0, index($0,$2))}' | sort -u | xargs grep -Fvf -