Remove unnecessary computation