ac/nir: Lower large indirect variables to scratch