Adding key/value validation to avoid latent failures in persistent connections