Rewrite form of asset mask arrays from sequential to associative