Better memory handling of obj pieces