automatic flattening of SVM models with linear kernels to enhance prediction speed