Make archive and optimize optional

Pretty obvious. I actually only need archive to be optional (I want to keep data forever), but optimize was easy to implement too and someone might want it.