Optimizing REST API bandwidth usage

@raff @mseaton @darius how can this be realized, I think it would be handled with same approach as REST Search for Alive Patients see related Jira ticket here https://issues.openmrs.org/browse/RESTWS-595