Improving cost and accuracy of DPI traffic classifiers