improving rest api election listing performance