Added information on Chris Johns' suggestion to use pointers internally rather than doing repeated table lookups.