[BZ 1059412] Applying patch to speed up OOB calculations

(cherry picked from commit 3b9bbfd4355f466f128074f603d0dab48d1766d5)
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>