Improve sending of big array with locations to the server