Added newplpgsql call osrm_dmatrix() that does not cache the json documents in memory so it should be able to handle larger requests.
saving changes from my src dir.