Optimize read of training data