Graphite optimizations