Tag test 3
Fix issue where encrypted keys were being overwritten