Fix #21, now only the credentials use the secure cache