Major improvements to conditional logic performance and better logic to hide table columns hone a cell is hidden

Signed-off-by: Elliot Condon <e@elliotcondon.com>