Optimization: avoid to save twins if not needed