Fixing outputfile caching