added IndexCache to speed up load_index