This lazy initialization pattern in a factory function defers expensive resource initialization until it's actually needed. The heavyResource is only created on first use, not when the factory is defined. This improves application startup time and saves resources if the processor is never used. It combines the benefits of factory functions (creating new processor instances) with efficient resource sharing (reusing the expensive resource across instances).