When initializing our CanonicalQuery for query planning, we cannot check the 'internalQueryFrameworkControl' parameter more than once, because this parameter is runtime configurable and can change between the two checks (the value is not guaranteed to be constant throughout the lifetime of a query).
One option that was discussed was adding it as a decorator on the operation context or on the expression context.