Closes T2695.
Rationale: speed up readdir/lookup endpoints.
Multiple (design) points to discuss:
- Should we bound the cache by number of directories or by number of total directories entries?
- Should we have a limit on what entries size a directory can be cached?