Generation of near-optimal universal Boolean functions