Fix namespaces controllers and reduce hits on database

Signed-off-by: Vince Montalbano <vince.montalbano@gmail.com>