Smart caching for last context (to not evaluate restrictions)