I wanted to do that after the heaps are created. And it also matches the way this function is structured - all the critical sections are created at the beginning together, then the heaps are created that some of the caches use and finally the caches are initialized.