Nice! Could perhaps be further simplified to something like:
`for path in filter(has_cache_key, all_paths):`