refactoring of the attribute cache infrastructure