adding cache to key checks