Optimal fluctuations and the control of chaos