Memoized gloss comparisons