First cut at thread-safe TT