Caching of partial results