Text this: Wavefunction engineering towards high-performance terahertz quantum cascade lasers