improve read file performance