CNNs for JPEGs: Designing Cost-Efficient Stems (Journal of the Brazilian Computer Society, 2026)