Optimized implicit sampling

Mostly object reusing. Huge, huge performance gains.
Also added a proxy for undefined columns in table.