slightly improve folding performance