Added cache to document service