Optimize startup time by lazy loading vital libraries.