How to speed up gremlin query - Apache TinkerPop