Cache the store in TLS so we can avoid some pthread calls.
Make tesla_key.c into a header so that its two functions can be inlined.
Approximately 10% speedup - tesla_key_matches() was called a lot...
Only call ev_notifications if it is not a (very expensive) no-op.