Make defense generation lazy