I'd say let's use this naive approach for now, and switch to a cursor or another, smarter approach if we need to.