Added caching to ajax requests