Using switch instead of $methodName and using SugarCache