Changing structure of rr to enable better memory usage w/r/t array caching