fixed long cachekeys reported on issue #380