Reverse keys array only once instead of unshifting every key.