Streamline thread_data data direction setting and checking