Cache inherited settings outside of structure

LMS-11363

@nasthagiri I verified w/ red green testing
(some pylint fixes b/c my ide is being more vigilant)
I had shuffled the arms of the if w/o changing the polarity. The fact that it passed tests is very worrisome