Do LLMs Need to Think in One Language? Correlation between Latent Language and Task Performance