That could work, yeah. I developed assassin droids before - though not in the Star Wars universe. Their sentience was gained from simply not getting memory wipes or tampers in their programming. As assassin droids are already equipped with more-than-advanced processors and behavior cores, sentience among them is not unheard of. It could add an interesting flair to the concept :)