Added abstraction and caching for folding/unfolding turds :guitar:.