Added logic to remove secrets after being revealed