Make persistKeySync truly synchronous
Merge pull request #16 from broox/persist-key-sync

Make persistKeySync truly synchronous