Speed up by using genetic algorithm version with fitness cache