Cred store size limit

Split up credential store entries if they get too big.

apologize if I understand wrong, but looks like here we swallow the "err"? Maybe this line should be moved out of the if block?