performance improvements on non-typescript files