[SMB] Fixes bug where user and category ids were being calculated multiple times