dataset optimize
remove nested cycles