Optimize method to avoid an unnecessary update