Adds memoization to credentials prompting.
Merge pull request #187 from larssono/develop

Adds memoization to credentials prompting.