Write an optimized function to handle large-scale data transformation in Python.
Implement transform_records(records, mapping) to return a list of transformed dictionaries. records is a list of dictionaries, and mapping maps each output key to a source key. Preserve record order, include only source fields that exist, and return an empty dictionary when no mapped source fields exist.
def transform_records(records, mapping):