If you need to make compact data from various inputs here is an example:
Making 272b data from 8*32b data structure and one 16b data