binary storage of csrf tokens and clean up some documents