Effectively Calculating Gaseous Absorption in Radiative Transfer Models of Exoplanetary and Brown Dwarf Atmospheres