Persist grid search so that it can be killed and restarted