[stream] rewrite stream cache feature