fixed key manager refresh cache flag not cleared