Improve performance by memoizing global context data and clearing it when self.setup is called