Context - Part 4, Chorus Forms
The most effective way to encode a lick into your long term memory and ensure that it shows up in your improvising is to apply the chorus form method. Learn the lick, then play it as an: AAA; AAA with fills; AAB; AAB with fills; the three variations of A B/A C; change the presentation of the lick (dip, add a little of the upper note, shake, slap, pulls and slaps, flutter, octave, etc.); move it up and/or down an octave; break it into smaller pieces (fragmentation)...
This process is not only VERY effective, it's very fun!