Thread safety and human-readable format of context