A system precomputes data for possible use by a processor. The system
receives data units, and determines the types of the data units. The
system then identifies one or more bit masks based on the types of the
data units, where the one or more bit masks include bits corresponding to
at least some portions of the data units. The system uses the one or more
bit masks to select one or more portions of the data units and perform
one or more functions using the one or more portions of the data units to
generate function results. The system stores the function results in a
first memory for subsequent selective use by the processor, and stores
the data units in a second memory for subsequent retrieval by the
processor.