Cache and Cache State Machine working