_cube_size and cube_penalty cleanup