work in progress: implementing cache for validation result