add use_cache option to get_index() api function