Only compute message parameters when debug is enabled