Optimizing Deep Packet Inspection for High-Speed Traffic Analysis