ROBE-226 new auth mechanism and hibernate optimization