Moving external file fetching out of core