The behaviour related to caching files on disk here is untested.