Allocate objects on the stack where possible