Gravar-mail: Optimization of photon storage fidelity in ordered atomic arrays