Creating memory efficient Redis data structures