Memoize the calls to find the text block. Replace all instances of this. with getTextBlock instead.