Significantly improve performance by caching results of sorted_posts, all_posts and all_pages.