Compute the representation once, not each time in the loop here and below.