Use a named cursor so it doesn't try to fetch all the rows at once(!)