removed caching from repository manager to reduce complexity and have all caching just in the middleware.