An Accurate and Scalable Approach to Classifying High-Dimensional Data With Dense Latent Structure