Optimize certain trust functions