Various performance improvements in RootContainer class loading.