Reduce CUI output

Memoize privious output for each location in CUI output, and inhibit printing the same text.