You can use a edm::StreamCache<UnsafeCache> here since each stream gets its own independent cache.