I should have done that earlier... and of course I forgot a few files...
Querying the properties each frame isn't performant because of all the casts and pointer indirections.