Some speed optimizations on Sculpturing