Have you tested with large enough areas? I'd say the script should support about 50x30x50 blocks. Use webadmin's PerfPages to check if the tick doesn't take too long when executing the script.