Saving the state rather than re-compute the best option