Seems like this is the only place this variable is used. I think we should avoid maintaining state when possible. 

Also it may be required to not cache the state given that we're dealing with dynamic data sources that could be updated frequently.