A mechanism is provided for efficiently storing a key and optionally
additional data in an environment. A memory apparatus embodiment includes
a plurality of memory banks and a conversion module. The number of memory
banks is determined by at least the number of coordinates within an
n-dimension format, each bank is associated to one of the coordinates
within the n-dimension format. Each memory bank has at least a number of
memory locations equal to the largest valid value for its associated
coordinate. The conversion module converts a key into an n-dimension
format, the n-dimension format defines a coordinate system where each
coordinate represents a memory location within the associated memory
bank. The conversion module stores the key into one memory location based
on a policy which is dependent on the coordinates defined by the
n-dimension format.