Should cache the keys array out so we don't have to call the function twice