Some small performance hacks