Adding optimization - temporal early error out for shadow rays