precompute struct info in message class