Fixed caching for merged dicts