Implement scaling of resources based on input size