using binary files for significant speedup