Optimized logic when fetching raw results