mini optimization: share frequently occuring values