Sped up reading from file