Improve API Content & Relation object build time

Change to get ContentType from SPI (straight from cache) instead of using API for
internal use, as API version needs lots of build and load logic and slows things down.
I intended that it can take both in case calling code already have it, otherwise I'll need to check use.