optimal performance for VariableResolver