SELECT 
  1 
FROM 
  lock_keys 
WHERE 
  key_id = '6134896b73daaaf23bc43d4e8b2b704bf6cbc8132326c93648a3b2f2f60f6b6c' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00046

JSON explain

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