app: plug leak of keys in keyfile.