Yes, nothing should stop you of doing so. You can create singleton instance so that you may avoid instantiating the client over and over (which could be expensive: allocating new resources, sockets and so on).