add regionsByThread vector for better lookup