Finish iteration C5: caching of partial results