Optimize loading plugins