There's no way in SQL to do just that in a 'streaming' fashion.
However, for this specific case you might want to look into the option to proof that
TOP 10 ( val_a) X TOP 10 (val_b) = TOP 10 (val_a x val_b)
If you can do that, then you don't need the streaming algorithm and can save a lot of time and memory.
For things like "top n val_bs for a given val_a" the co-related sub-query would be the weapon of choice.