Intense lasers enable generating high-energy particle beams in university-scale laboratories. With the direct laser acceleration (DLA) method, the leading part of the laser pulse ionizes the target material and forms a positively charged ion plasma channel into which electrons are injected and accelerated. The high energy conversion efficiency of DLA makes it ideal for generating large numbers of photonuclear reactions. In this work, we reveal that, for efficient DLA to prevail, a target material of sufficiently high atomic number is required to maintain the injection of ionization electrons at the peak intensity of the pulse when the DLA channel is already formed. We demonstrate experimentally and numerically that, when the atomic number is too low, the target is depleted of its ionization electrons prematurely. Applying this understanding to multi-petawatt laser experiments is expected to result in increased neutron yields, a perquisite for a wide range of research and applications.