Runtime optimizations