According to some embodiments, a network layer header of a network packet
is received, metadata associated with the network packet is received, a
header offset associated with the network packet is determined based on
the metadata, and the network layer header is stored in an aligned cache
based on the header offset.