Performance optimizations for forums with a lot of categories

Benchmarking a 650 category, 900 000 post forum displays 200-400ms (> +50%) performance improvements on Kunena page creation times on 3GHz Intel Core I5.