use profiler, better key encoding