Optimization: avoid to save twins if not needed
Merge pull request #86 from jay3/feature/twinnable_optimizations

Optimization: avoid to save twins if not needed