Make hiding threads on all threads index mode faster. #1484