Plugin optimization