get_fringe, copy_store, defrag, optimize, get_key_count, get_location,....
all look very similar. maybe it's worth to extract the commonalities.