Cursor optimization