Generalize saving and loading step results and remove unused functions in eval_util.