Replaced some of the message processing logic with atomic operations.
The calculation time for the ENERBAT use case with a constant step size of 600 s over a year went from 2.4 s to 2 s !