Cache the credentials