Speeding freeing of stream contexts in minifilter

I want to speed up minifilter unload by freeing stream contexts manually during unload. Instead of registering a stream context cleanup callback, I am freeing the contexts from my unload() callback. This way I am able to cleanup contexts to be cleanup during unload but how do I take care of the contexts that should be freed when a stream is getting closed i.e when driver is still running?

You more likely to get a better answer sooner on ntfsd that here.

Good luck,

mm