Use an ObjectId dict to allow for precompiling.