Would there be anything to gain if the code in the SetPCA: section above is placed in the check section like this
It'll save you the call/return (so slightly less time/code), but it won't really change the timing much in the grand scheme of things.

If the flicker is caused by writing too often to the PCA it won't change that at all.