Bugfix: of two equal configurations, cache the one with smallest match length, not depth.