read-cache: regenerate shared index if necessary