REVIEW-4131: Put less stress on the garbage collector by not having to instantiate a new class for specific comparisons.