s3:registry: don't leak the old contents when updating the value cache (cherry picked...