Managing cases cache in a new thread