Micro-optimization tweaks for trail appenders