Call API just once

can remember value from firsr called API
global conn = Connect() in Windows  class
alternate Connect and Windows class