Your solution is much faster, but it doesn't work with stencil shadows either, does it?