save keys to machines associations