The application of inhomogeneous cavity gas densities and the non-spherical blast wave resulting from an explosion in this gas offers the potential to reduce the distance between the final diode and the target in a relativistic-electron-beam (REB) or light-ion beam (LIB) fusion reactor. It can also sharply reduce the overpressure experienced by the diode after the target explosion.