Only need to create cursors once