Electrostatic potential is a harmonic function on any region without charges. It has no local minimum, in fact the value at the origin is the average of the potential over a sphere centred at the origin within your "cage".  Therefore it is impossible to do what you want: there will always be a path the electron can take to escape to infinity.