I've had the same issue with this. Nothing wrong with the speed of the touch ID. Super fast when it works. But no real rhyme or reason behind it asking for the code. Have to pay attention and see if it is actually the amount of times checking lock screen.