Move cacheChanged logic to DAO layer.