Save results to disk after certain amount of iter