cache now accesses json strings properly