Have you considered renderin in passes then compositing? I think you should be able to do a lighting pass then a shadow pass.