Optimize imports on gremlin-core.