Prevent timing attacks