Add support for atom-level caching.