Improving client and server performance