malloc keys so we don't get a segfault on huge ones.