VET-135 Added static cache to avoid calling with incorrect contexts.