Add caching for document lists.