I'm not sure if it is good idea to introduce this global state in form of cache?