This line should give you all the info you need about the user.
https://github.com/tshenry/discourse-trust-level-avatar-flair/blob/master/common/head_tag.html#L7
Are you running this extra request for every poster in a topic?
If you store this info in a custom_user_field, and make put it in the public_user_custom_fields site setting they should be available there. (not sure about this, you will need to test. If they aren’t you can add those to the topic/post serializer in a plugin)