Better rm_read_indices exit condition