AISAB-25: Optimized computation of bounding box.