cache content using paths instead of unique file id

further reduce number of stat() calls