districts API call optimization