Improve-2 Faster file format algorithm