Faster stream implementation