def METHOD_NAME(self, data):
    if not data:
        return
    sdata = []
    for key, val in data:
        if not key:
            raise ex.Error("secret key name can not be empty")
        if val is None:
            raise ex.Error("secret value can not be empty")
        val = "crypt:"+base64.urlsafe_b64encode(self.encrypt(val, cluster_name="join", encode=True)).decode()
        sdata.append("data.%s=%s" % (key, val))
    self.set_multi(sdata)
    self.log.info("secret keys '%s' added", ",".join([k for k, v in data]))
    # refresh if in use
    self.postinstall(key)