Envoyer par SMS: Purification of a single-photon nonlinearity