Cache a Z table for layer range search