Use cache key instead of path and file