The energy is stored by the elasticity of the quantum fields, as they propagate. This is similar to water waves with their elasticity. Study more about this.