some performance optimizations: add some necessary indexes to DB, and use a session object for bitcoin.connect so that HTTP connections are reused. Maybe these will help a bit...