Ah yes, that's exactly what CRC32 is supposed to be used for. And it's even quicker if you don't compute it over the whole file, brilliant!
E.g. see this:
* https://www.strchr.com/hash_functions
* https://jpountz.github.io/lz4-java/1.2.0/xxhash-benchmark/