Actually, better yet, you can probably combine this into the limit pushdown optimizer.