LUN-1371: minimized number of queries for sitemap