fix #2401: cache for aggregating model methods