avoid redundant computation in Map for assembly.allmaps