Lightweight network packet aggregation and efficient storage of flows