Track to file and elaborate next?

Hello! For best server performance, is possible track visits and actions on flat file and next download file and insert to piwik mysql in local server?
It’s a good idea? We have a lot of mini site to track.
Thanks.