More efficient encoding of rowids.