1. A method comprising: receiving, by a network interface of a network device, a packet stream; identifying one or more packets within the packet stream that satisfy one or more conditions of a plurality of predefined conditions by pre-matching, by an acceleration device of the network device, the packet stream with the plurality of predefined conditions; generating matching tokens of a packet of the one or more identified packets by correlating, by the acceleration device, the packet based on the one or more satisfied conditions; and extracting information from the packet, by the acceleration device, performing context and pattern matching processing on the packet, wherein the context and pattern matching processing includes one or more of context aware string matching, regular expression matching and packet field value matching based on the matching tokens and information regarding the one or more satisfied conditions.