And yet another optimization for boost calculations