Added basic user and document caching