Made dedicated file stats handler to watch and cache file stats.