Optimization of file parsing