See comment above, but here I think we'll be better off with a HashMap<ImmutableBytesPtr,Integer>