0009910: updateFlags is using too much memory