1. A method, in a data processing hardware system having a processor, comprising: receiving, from a user, a query to a root context of a context tree, the query including a name and value pair; traversing, upon detecting the query to the root context of the context tree, the context tree for a parent context of a subcontext corresponding to the name and value pair; and determining, by the processor, whether the parent context caches all query results.