Fixed precaching script to use local data files when possible.