Optimizing overclocking