Patch HerdClient, plus GLOBAL_CACHE_TIME modifications