It’s not so hard. A few command line commands on a Mac. Store the md5 of each file, throw it into a JSON file. Load it all up in a dict. I do something similar every month. Gotta do something with those cores overnight :)
It’s very brute force and inelegant, but also simple and quick enough.