Heavily reduce query load for XML sitemaps
Implement XML sitemaps transient caching
Code style fixes