private function deleteUserKey(PKEncryptionEnabledUserInterface$user, $flush = false)
    {
        $key = $this->findKeyByUser($user);
        if ($key) {
            $this->getEntityManager()->remove($key);
            if ($flush) {
                $this->getEntityManager()->flush();
            }
        }
    }