cleanup unused method legacyKeyRecryptKeyfile