the reference to the array element can be cached in a local variable saving one lookup.