Remove dead matrix copies