Tag demulsifier performance optimization