Cache slots lookup when checking overlapping slots