Well, it all starts with Tres Golpes: Pam--Pam--Pam (just kidding, you all know what a Tres Golpes is)...
OK, so here are some ideas, but first some background information...
Notes in music activate through your auditory nerves the neuron connections in the brain...so the strategy of what I mention below is to activate a cluster of neurons with a basic phrase and keep hammering at it from different directions, in novel ways, to keep those neurons looking in all directions !
For example: Take the phrase sSs-SS (the S is an accent for the everpresent sss-ss in so many solos). What can you do with such a simple building block and play it as if it a lot of different variations ?
1) Split the phrase - Take the first half, repeat it multiple times - sSs sSs sSs-SS or the ending SS SS
2) Play the phrase in a descent fashion, high on the s S s then lower into the SS down below
3) Add 16 note rolls in between - sSs-SS ssss sSs-ss ssss ssss
4) Add fills sSs-SS s-s-s sSs-SS ss-s sSs-SS s--s s--s
5) Play it choppy style (wide side to side licks, high from above)
6) Alternate it with opens sSs-OO or muffled mMm-OO, or oOo-SS
Some fills and rolls sound better with some basic phrases, all you need is a FILL BLOCK to choose from, then apply the whole FILL BLOCK to the basic phrase. For myself I have about 5 FILL BLOCKS that I apply as a template to a basic phrase, 4 fills to a block, here is a block
Ss,,,
SS-S
S-S-S
SsSs
Always aim for an unaccented fill (Ss) and after the phrase an accented fill (SS-S). This gives the solo excitement, the unaccented fills 'rewind' the phrase, while the accented ones 'emphasize' the phrase. As for myself I don't go beyond 15 seconds in a developing a phrase, it gets boring for everyone...so you take the ending of the 15 seconds and develop another phrase, go for another 15 seconds on that, and so on.
7) Finally you can Front Load the Phrase or Back Load the Phrase, by this I mean a phrase that starts with the fills or a phrase that ends with fills. This may turn the phrase into a different neural recognition, so use this with caution:
s-Ss-s-s-s sSs-SS (Front loaded)
sSs-SS s-ss-s--s--ss (Back loaded)
Sound totally different, as the phrases cluster with fills they become ever larger phrases !!
And finally you can go into a 6/8 feel with the phrase, "stretching" the notes ... or you can slow down the phrase by heightening your hands and descend really slow...by this point you should finish the phrase since psychologically most people tune off that phrase at that point...at this point whack them with a FLAM--FLAM--FLAM, begin to play low another phrase back at step 1.