Cached stream reference

I added this to cache the stream reference saving Browserify from doing a redundant dependency look up.