crack at moving getKeyAfterBytes to IndexDetailsBase