Stop using temporary resources and instead just directly work with files