How Small Language Models can Perform Specialized Tasks