Optimize package lazy loader