Speed up block folding/unfolding