Replacing file reading/hashing with simpler checks