You can try rhythmic variations to practice both speed and accuracy.
So you keep alternating between 1 short note and 1 long note.
For example, say your lick is ABCDEFGA. You play it like:
AB…CD…EF…GA… (as well as A…BC…DE…FG…).
When you can do that, progress to 2 short + 1 long:
ABC…DEF…GAB…
And then 3 short + 1 long:
ABCD…EFGA…
The short notes are to be played as fast and smooth as possible, as if you’re executing them with one movement (kinda like chunking).
This video describes it better. He calls it Grouping Notes. It’s violin, but you can apply the same concept to guitar: