Enhancing the data transmission between client and server