optimize fetching latest inputs slightly