Efficient processing of system scenarios in statistical and machine learning studies for power system operational and investment planning