Add packing of permission lists to reduce cookie sizes

:cookie: