Modify shared_vector access to use pointer instead of [] operator. It's slightly faster.