SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'ba78e502690fec354f5aecbc8652eaa164e38e0c8666c46fcc3d5114d4a5dbd9' 
  AND token = 'bo5mLVwkH1vm/DNiJ2pUVkc8wcKbMt4UJc5Sm6Fty1I=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00020

JSON explain

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