Prevent duplicated optimizing