Make a purposed comparator for the new ByteBufferKeyValue base type. Cache deserialized sizes rather than recalc each time.