don't use static object encoding/decoding when compiling for profiling