Cache the grid element for better performance.