minor performance tweaks to MaxEntModel