Reduce reading to the file by temp variable