Add synchronized to allow key pairs to be added in