switch into the i/o thread to preload
adding a flag to help with priming the cache for resource url replacement