Optimize the update context

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>