MAX_KEYS should be multiple of 3 otherwise confusing