An equivalent to SSI, with code optimization