Use setter to always write shared_key to file
Count properly on server