OhLordyMyKnees
Half Squid, One Quarter Adult, One Quarter Lost
It's called trail braking. First, downshift to the correct gear needed for utilizing maximum acceleration out of a curve. Second, utilize the correct amount of brake in as little time as possible entering the curve. Third, follow with a coordinated gradual easing off the rear brake while you accelerate. This sets the attitude of the chassis, prevents too much weight transfer onto the front wheel thereby improving the available traction (lean angle) through the curve and reduces the time necessary (=speed) to complete the curve.
Just my two cents.
Gently, gently, gently! Practice somewhere other than right before a canyon curve! Of all the things to have in the middle of a hard lean, a locked rear wheel is one of the worst.