Changed array element retrieval functions to use on-demand addresses