fdo#80908 - avoid lots of alloc/free of 2x boolean values.

Change-Id: I04c680813e997b98d8c1aae70953a61e5c28c4cd