Improved interface to get_index_keys