Minimize calls to the server side.