Make credential fetch occur in ruby_block so that it happens at runtime