Adjusted logic to use Strings as cache hash keys instead of BigNums