Thread lookup

Storage part for new thread lookup logic