Minor optimization to the code invalidation routine.
Authored by: debug 2019-06-07
Parent: [r4620]
Child: [r4622]