Fixed LocalCache issue with new clearing mechanism and FState test