Slightly optimize UUID to CBID conversions.