Isn't this wrong? The node needs some time to startup and if you ask for the amount of loadAllKeys in that time it will always return 1. It is unlikely to fail at any point.

This way it doesn't make sense at all.