Fixing minor bug in caching lib for always_cache (not currently used)