Added uniform caching, to eliminate sequential redundant state changes