Added static method to get key offset for iterators.