Perturbing the general base residue Glu166 in the active site of class A β-lactamase leads to enhanced carbapenem binding and acylation.