Optimize option flag de-duping.