More optimization with byte arrays and reduction of complexity via select statements.