Minimal/smart updates by querying before update