Improve creation of the thread/posting caches.