Adds memoization to credentials prompting.