Fix logged search inserts. Only decode message if it's needed.