Refactor cache predicates for `file-exists-p'