plugin system optimize