Tie values to keys and reduce those values automatically on namespace basis