Sacrifice performance for thread safety