Update to support caching sample data.