This is insanely inefficient!  Once you have more than 10K or 100K atoms, got-get-atoms will return all of them, and this will take minutes to run!

That atomspace keeps a special index for this, so that the C++ code can ask and get an answer immediately. I don't remember if there is a scheme wrapper for this or not, if there isn't then one should be created.