getAllKeys will not work with binary mode.