Switch file reading to process context