Shaping electrostatic energy computations in proteins