Optmized data query from server.