* Improve efficiency of training data generation