Support value mutation while caching and logging.