Using 3 static var for Masterkey and generat 3 secret use for encryption