Optimize AOI handling by storing corners