Factorize code of incache outer_fold by using outer_fold_step