Unfortunately `Filesystem::has` does not cache the result for non-existing paths. Otherwise we could go your described way.