Cleaning joints optimization