spatial grid optimizations