Avoid regenerating SVG data when there's no need to do so.