Do not calculate the rarest piece unless it is needed.
It is an expensive operation.