Allow cursors to execute another query before previous one finishes