Optimize script startup time by delaying load