Fix severual issues in concurency and cache layer. Create a cache of
vertices in transaction