Changed the way we save shadow data in the shadow phase.