It is well known that the superconducting transition temperature (Tc) of cuprate superconductors can be enhanced by varying certain structural and electronic parameters, such as the flatness of the CuO2 planes or their doping level. We determine the uniaxial and hydrostatic pressure derivatives of Tc in the structurally simple tetragonal compound HgBa2CuO4+δ near optimal doping. Our results provide experimental evidence for two further methods to enhance Tc: (i) reducing the area of the CuO2 planes, and (ii) increasing the separation of the CuO2 planar groups. Tc is found to couple much more strongly to the ratio c/a of the lattice constants than to the unit cell volume. A comparison with prior results for structurally more complicated cuprates reveals a general trend of uniaxial pressure derivatives with Tc.