Store the filtered and sorted list of published posts in an instance variable so repeated calls during the same request (posts list, tags, feeds, sitemap) reuse the cached result instead of re-filtering and re-sorting from scratch each time. Sinatra resets instance variables between requests, so the cache stays fresh.