rpearce: Restrict to only lookup 1 depth of env children.
* to_enc currently takes 18-20 seconds, reducing depth improves performance to 5 secs