Fixed cache access

Better access it under lock...
MSIE8 fix