Don't write the key file is there is no data.