cleanup of some unused functions in simple_store + allow next_prefix to handle the empty string