Avoid lots of {compile} calls, also avoids an apparent memory leak.