GEOT-4481 Reduce time for calculating extents for DB2