save job perf stats in mongodb (in addition to perf.log) and provide API to return json struct