Ensure extensions are loaded before processing keys

@cpennington, @sarina