Ι have tested your method and the results were pretty much the same as I remember.
Here is what I’m doing. It is an event that’s being called everytime the AI perception is updated.