Coherence in a cold atom photon switch