Change BoxKey to a class to help with Morton ordering.