Optimization algorithms intermediate results stripped.

Fixes #22.