In certain situations and with Mapbox approval, Matrix API calls can be made with 50 coordinates instead of the normal 25 maximum. This ticket tracks the idea of adjusting the Java SDK so that the SDK supports the 50 coordinate calls.
https://github.com/mapbox/mapbox-java/blob/master/services-matrix/src/main/java/com/mapbox/api/matrix/v1/MapboxMatrix.java#L306-L312
Related:
cc @brandihaskins