store vertex keys only in leaf nodes