optimize index reaping and indexed status