Reducing Wasted Evaluations in Cartesian Genetic Programming