Optimize sitemap generation

Since localcache is disabled, the collection attribute keys are loaded for
every page.
Let's cache those collection attributes...