Improve speed of the rdbms-get-rich-addresses function.