Idea for improving performance of file checks

Also, you could implement a local cache if that fits your needs to locally store metadata to help.