Added some caching to the backend.