attempt to speedup thread-safe state tracker