1. A method of identifying network transactions from a Transport Control Protocol (TCP) stream, comprising: using at least a processor and memory for: examining, using statistical analysis, patterns of data sent from and received by a mobile application on a mobile device; determining one or more network transaction parameters based on the examination; identifying network transactions from the TCP stream based on the one or more network transaction parameters; and optimizing in real-time data sent over a mobile network based on the identified network transactions, wherein the network transactions occur over a same TCP session, and wherein the one or more network transaction parameters include content following a certain pattern, wherein the one or more network transaction parameters include a regular interval and a regular size, both determined from the patterns of data sent from and received by the mobile application based on the statistical analysis.