memoize call to get_key

This needs https://github.com/leapcode/leap_pycommon/pull/79