Avoid reading credential store when it has not been defined. In this

case we read from the bean in memory.