RavenDB-1557 Avoid allocations in client side