saves secretkey and workernodemanager to files