add stats.js to cache the statistics data in process