SELECT 
  1 
FROM 
  q_lock_keys 
WHERE 
  key_id = '052baf724ccd66aee44cb781b47edad8ca5512824f8b0240a5e5f3dd3fff24e8' 
  AND token = 'CAwpmA3LRWxKbhl5FUsN101ldDo0b9I7DlVww4k3HeA=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00023

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}