public function getPublicMasterKey()
    {
        if (!$this->publicMasterKey) {
            $masterKey = $this->getMasterKey();
            $publicKeyDetails = openssl_pkey_get_details($masterKey);
            $this->publicMasterKey = $publicKeyDetails['key'];
        }
        return $this->publicMasterKey;
    }